<?php
class FormWidgetFormatter {

  public static function formatGender($widget, $inputs) {
    foreach ($inputs as $input) {
      $rows[] = $input['input']. '<span class="chk">' .  $input['label'] . '</span>';
    }

    return '<div class="clear p10_0">' . implode('', $rows) . '</div>';
  }
}